= error_messages_for 'user'

/ [form:user]
%table
  %tr
    %td
      %p
        %label{:for => "user_name"} Name
        %br
        = text_field('user', 'name', "size" => 20)
    
      %p
        %label{:for => "user_password"} Password
        %br
        = password_field('user', 'password', "size" => 20)
        
      %p
        %label{:for => "registration_password_repeat"} Password (repeat)
        %br
        = password_field('user', 'password_repeat', "size" => 20)
      
      - if session[:user_id] && session[:user_level] > 0
      %p
        %label{:for => "user_level"} Level
        %br
        = text_field('user', 'level', "size" => 2)
      - end
    
    %td
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

    %td
      %p
        %label{:for => "user_first_name"} First Name
        %br
        = text_field('user', 'first_name', "size" => 20)
      
      %p
        %label{:for => "last_name"} Last Name
        %br
        = text_field('user', 'last_name', "size" => 20)
      
      %p
        %label{:for => "email"} Email
        %br
        = text_field('user', 'email', "size" => 20)
      
      %p
        %label{:for => "user_street"} Street
        %br
        = text_field('user', 'street', "size" => 20)
      
      %p
        %label{:for => "user_city"} City
        %br
        = text_field('user', 'city', "size" => 20)
/ [eoform:user]

